﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Century.Model.ViewModel
{
    [XmlRoot("ArrayOfEvent")]
    public class EconomicCalendarViweModel
    {
        [XmlElement("Event")]
        public List<Event> EventList { get; set; }
    }

    public class Event
    {
        public string IdEcoCalendar { get; set; }
        public string IdEcoCalendarDate { get; set; }
        [XmlElement("Date")]
        public DateModel DateModel { get; set; }

        public string InternationalCode { get; set; }
        public string Country { get; set; }
        public string Name { get; set; }
        public string Preliminar { get; set; }
        public string ForType { get; set; }

        public string Volatility { get; set; }
        public string Unit { get; set; }
        public string Actual { get; set; }
        public string Concensus { get; set; }
        public string Relation { get; set; }
        public string Previous { get; set; }
        public string PotPrevious { get; set; }
        public string Revised { get; set; }
        public string Better { get; set; }
        public string Worst { get; set; }
        public string IdEcoCalendarType { get; set; }
        public string EcoCalendarType { get; set; }
        public string Tentative { get; set; }
        public string AllDay { get; set; }
        public string HasTxitxa { get; set; }
    }

    public class DateModel
    {
        public string Date { get; set; }
        public string DateStr { get; set; }
        public string Year { get; set; }
        public string Month { get; set; }
        public string Day { get; set; }
        public string Hour { get; set; }
        public string Minute { get; set; }
        public string Second { get; set; }
        public string Milliseconds { get; set; }
    }
}
